{extend name="/base" /}
{block name="body"}
<div class="uk-container uk-container-center margin-t-15">
	<!--左中右结构-->
	<div class="uk-grid">
		<div class="uk-width-1-10">
			　
			<div class="sidebar1">
				<h5>文章分类</h5>
				<ul>
{volist name="category_hhc" id="v"}
					<li><a href="{:url('index/tolist','cid='.$v['id'])}" title="{$v.nickname}">{$v.name}</a></li>
{/volist}
				</ul>
			</div>
		</div>
		<div class="uk-width-6-10 margin-t-10">
			<div class="main">
				<div class="top">
					<i class="uk-icon-navicon"></i> {php} if(isset($one_category)){echo $one_category['name'];}elseif(think\Request::instance()->has('keyword','get')){echo think\Request::instance()->param('keyword').'搜索';}{/php}
				</div>
				<ul class="list-a">
{volist name="list" id="v"}
{php}
$arr_img = explode(',',$v['images']);
$count_img = count($arr_img);
{/php}
{if condition = "$count_img egt 4"}
					<li class="">
					<a href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}">
					<h4>{$v.title}</h4>
					</a>
					<div class="img uk-grid uk-grid-width-1-4 uk-grid-small">
{foreach $arr_img as $son} 
						<a href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}">
						<div class="zimg">
							<img src="/static/timthumb/timthumb.php?src={$son}&w=204&h=146">
						</div>
						</a>
{/foreach}
					</div>
					<div class="bottom-info lucn-justify">
						<span><i class="uk-icon uk-icon-user"></i> {$v.author} · {php}echo fast\lucn\Lucn::countDownTime($v['createtime']){/php}</span>
						<span><i class="uk-icon-eye"></i> {$v.views}</span>
					</div>
					</li>
{else /}
					<li>
					<div class="uk-grid uk-grid-small">
						<a class="uk-width-1-4 img" href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}">
						<div class="zimg">
							<img src="/static/timthumb/timthumb.php?src={$v.image}&w=204&h=146">
						</div>
						</a>
						<div class="uk-width-3-4">
							<a href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}">
							<h4 style="height:2.7em;">{$v.title}</h4>
							</a>
							<div class="bottom-info lucn-justify">
								<span><i class="uk-icon uk-icon-user"></i> {$v.author} · {php}echo fast\lucn\Lucn::countDownTime($v['createtime']){/php}</span>
								<span><i class="uk-icon-eye"></i> {$v.views}</span>
							</div>
						</div>
					</div>
					</li>
{/if}
{/volist}
				</ul>
				<div class="uk-text-center">
{$list->render()}
				</div>
			</div>
		</div>
		<div class="uk-width-3-10">
			<div class="sidebar">
				<div class="con">
					<div class="row1">
						<a href="{$ad1.link}">
						<img src="{$ad1.image}">
						</a>
					</div>
					<div class="row2 panel-1 margin-t-30">
						<h3>本类热点</h3>
						<ul>
{volist name="hlist" id="v"}
							<li class="clearfix">
							<a href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}"><img class="uk-float-left" src="/static/timthumb/timthumb.php?src={$v.image}&w=50&h=50"></a>
							<a href="{:url($module.'/'.$controller_sign.'/view','id='.$v['id'])}">
							<h4>{$v.title}</h4>
							</a>
							</li>
{/volist}
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
    $(".sidebar").css('width',$(".sidebar").outerWidth(true));
	$(".sidebar1").css('width',$(".sidebar1").outerWidth(true));
	$(".sidebar").smartFloat(15);
	$(".sidebar1").smartFloat(35);
});
</script>
{/block}